package com.jy.service.impl;

import com.jy.mapper.FileTypeMapper;
import com.jy.pojo.FileType;
import com.jy.service.FileTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FileTypeServceImpl  implements FileTypeService {
    @Autowired
    private FileTypeMapper fileTypeMapper;

    @Override
    public FileType getFileTypeById(int typeId) {
        return fileTypeMapper.getFileTypeById(typeId);
    }

    @Override
    public List<FileType> getAllFileType() {
        return fileTypeMapper.getAllFileType();
    }
}
